package se.webbzon.boltzmann.editor.comparator;

import java.util.Comparator;

import se.webbzon.boltzmann.item.AbstractItem;
import se.webbzon.boltzmann.item.ItemGroup;

public class ItemComparator implements Comparator<AbstractItem> {

	@Override public int compare(AbstractItem left, AbstractItem right) {
		return ItemGroup.instance().getId(left) - ItemGroup.instance().getId(right);
	}

}
